package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface UserMapper extends BaseMapper<User> {
    @Update("update t_user set password = #{encode} where username = #{username}")
    void changePasswordByUsername(@Param("username") String username,@Param("encode") String encode);
}
